import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
var _excluded = ["triggerMsgData", "title", "modalVisible"];

var _dec, _class;

import React from 'react';
import { Form, Modal } from 'antd';
var TriggerMsgDrawer = (_dec = Form.create({
  fieldNameProp: null
}), _dec(_class = /*#__PURE__*/function (_React$PureComponent) {
  _inherits(TriggerMsgDrawer, _React$PureComponent);

  var _super = _createSuper(TriggerMsgDrawer);

  function TriggerMsgDrawer() {
    _classCallCheck(this, TriggerMsgDrawer);

    return _super.apply(this, arguments);
  }

  _createClass(TriggerMsgDrawer, [{
    key: "render",
    value: function render() {
      var _this$props = this.props,
          _this$props$triggerMs = _this$props.triggerMsgData,
          triggerMsgData = _this$props$triggerMs === void 0 ? {} : _this$props$triggerMs,
          title = _this$props.title,
          modalVisible = _this$props.modalVisible,
          other = _objectWithoutProperties(_this$props, _excluded);

      var triggerMsg = triggerMsgData.triggerMsg;
      return /*#__PURE__*/React.createElement(Modal, Object.assign({
        destroyOnClose: true,
        title: title,
        wrapClassName: "ant-modal-sidebar-right",
        transitionName: "move-right",
        visible: modalVisible
      }, other), /*#__PURE__*/React.createElement("p", {
        dangerouslySetInnerHTML: {
          __html: triggerMsg
        }
      }));
    }
  }]);

  return TriggerMsgDrawer;
}(React.PureComponent)) || _class);
export { TriggerMsgDrawer as default };